.prompt-version-history {
  width: 100%;
  height: 100%;
}

/* 版本时间线 */
.ant-timeline {
  margin-top: 24px;
}

.ant-timeline-item {
  padding-bottom: 32px;
}

.ant-timeline-item:last-child {
  padding-bottom: 0;
}

/* 版本点样式 */
.version-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  font-size: 14px;
}

.version-dot .anticon {
  font-size: 14px;
}

/* 版本卡片 */
.version-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.version-card:hover {
  border-color: #40a9ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.version-card.current {
  border-color: #52c41a;
  background: linear-gradient(to right, rgba(82, 196, 26, 0.02), transparent);
}

.version-card.selected {
  border-color: #1890ff;
  background: rgba(24, 144, 255, 0.02);
}

.version-card.compare-selected {
  border-color: #722ed1;
  background: rgba(114, 46, 209, 0.02);
}

/* 版本信息 */
.version-number {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.version-changelog {
  color: #595959;
  font-size: 14px;
  margin: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.version-meta {
  color: #8c8c8c;
  font-size: 12px;
}

/* 版本统计 */
.version-stats {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
  color: #8c8c8c;
  font-size: 12px;
}

/* 版本详情 */
.detail-item {
  margin-bottom: 8px;
}

.detail-label {
  color: #8c8c8c;
  margin-right: 8px;
}

.version-content-preview {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  padding: 12px;
  border-radius: 4px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
  margin: 0;
}

/* Diff查看器容器 */
.diff-viewer-container {
  width: 100%;
  height: calc(100vh - 200px);
  overflow: auto;
}

.diff-viewer-container .d2h-wrapper {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
}

/* 对比模式提示 */
.ant-alert {
  border-radius: 4px;
}

/* 标签样式 */
.ant-tag {
  margin: 0 4px;
}

/* 按钮组 */
.ant-space {
  display: flex;
  align-items: center;
}

/* 滚动条样式 */
.version-content-preview::-webkit-scrollbar,
.diff-viewer-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.version-content-preview::-webkit-scrollbar-thumb,
.diff-viewer-container::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 3px;
}

.version-content-preview::-webkit-scrollbar-thumb:hover,
.diff-viewer-container::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}

.version-content-preview::-webkit-scrollbar-track,
.diff-viewer-container::-webkit-scrollbar-track {
  background: transparent;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .diff-viewer-container {
    height: calc(100vh - 120px);
  }
  
  .ant-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .version-changelog {
    -webkit-line-clamp: 1;
  }
  
  .version-meta {
    display: none;
  }
}

/* 动画效果 */
@keyframes highlight {
  0% {
    background-color: rgba(24, 144, 255, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

.version-card.new-version {
  animation: highlight 2s ease-out;
}

/* Badge样式 */
.ant-badge-count {
  font-size: 10px;
  height: 18px;
  line-height: 18px;
  min-width: 18px;
}

/* 空状态 */
.ant-empty {
  margin: 40px 0;
}

/* Modal样式 */
.ant-modal-footer {
  border-top: 1px solid #f0f0f0;
  padding: 10px 16px;
}

/* 输入框样式 */
.ant-input-search {
  border-radius: 4px;
}

.ant-input-search-button {
  border-radius: 0 4px 4px 0;
}